Revert "text: Avoid creating a PangoAttrList we don't need"
authorMatthias Clasen <mclasen@redhat.com>
Fri, 26 Jun 2020 19:27:09 +0000 (15:27 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 26 Jun 2020 19:27:17 +0000 (15:27 -0400)
commit8b4560cbfbc30f6db90455e2e5cd588bbb1db701
tree3e3734334278a970ddaef7067dc741500437a726
parent2d914d52be79f32ec051602153da23e7951ffc83
Revert "text: Avoid creating a PangoAttrList we don't need"

This reverts commit 67c26650280ba64ff1c0318be8d848e9563ddb21.

The splicing we do here has the important side-effect
of shifting the preedit attributes to the right position.
Without it, we end up always underlining the first chars
in the entry, regardless where the preedit happens.
gtk/gtktext.c